import axios from './index'

export const getOrderList = params => axios({
  url: '/h5/orders',
  method: 'get',
  params
})

export const createOrder = data => axios({
  url: '/h5/orders',
  method: 'post',
  headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
  data
})

export const getOrderDetail = (id, params) => axios({
  url: `/h5/orders/${id}`,
  method: 'get',
  params
})
